package org.dromara.datacheck.domain.bo.jst;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.datacheck.domain.jst.JstOtherOutEnterWarehouseOrder;

import java.util.Date;
import java.util.List;

/**
 * 聚水潭-其他出入库单业务对象 jst_other_out_enter_warhouse_order
 *
 * @author 刘武贵
 * @date 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JstOtherOutEnterWarehouseOrder.class, reverseConvertGenerate = false)
public class JstOtherOutEnterWarehouseOrderBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * id集合
     */
    private String ids;

    /**
     * 出库单号
     */
    @NotBlank(message = "出库单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outWarehouseNumber;

    /**
     * 单据日期
     */
    @NotBlank(message = "单据日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billDate;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseName;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billCreator;

    /**
     * 单据备注
     */
    @NotBlank(message = "单据备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billRemark;

    /**
     * 操作仓储方
     */
    @NotBlank(message = "操作仓储方不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operatorWarehouseOwner;

    /**
     * 商品编码
     */
    @NotBlank(message = "商品编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productNumber;

    /**
     * 颜色规格
     */
    @NotBlank(message = "颜色规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String colorSku;

    /**
     * 款式编码
     */
    @NotBlank(message = "款式编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String styleNumber;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quantity;

    /**
     * 出库类型
     */
    @NotBlank(message = "出库类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outWarehouseType;

    /**
     * 单据的创建日期
     */
    @NotNull(message = "单据的创建日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String billCreateTime;

    /**
     * 出库类型
     */
    private List<String> outWarehouseTypeList;

    /**
     * 单据日期（用于搜索）
     */
    @NotNull(message = "单据日期（用于搜索）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date newOrderDate;

    /**
     * 金蝶的物料编码
     */
    @NotBlank(message = "金蝶的物料编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jdMaterialCode;

    /**
     * 特殊处理的日期，用于和金蝶单据比对
     */
    private String compareDateToJd;

    /**
     * 数据标识  0 正常数据 1 金蝶不显示的物料编码 2 Link编码
     */
    private String dataSign;

}
